<template>
    <div>
       <diV class="recommendTitle">热销推荐</diV>
       <ul>
           <li class="item border-bottom" v-for="item in recommendList" :key="item.id">
             
                   <img class="item-img" :src="item.imgUrl" :alt="item.title">
               <div class="item-info">
                   <p class="item-title">{{item.title}}</p>
                    <p class="item-desc">{{item.desc}}</p>
                    <button class="item-btn">查看详情</button>
               </div>
           </li>
       </ul>
    </div>
</template>

<script>
export default {
    name:'HomeRecommend',
    data() {
        return {
            recommendList:[
                {
                    id:'001',
                    imgUrl:'http://img1.qunarzz.com/sight/p0/1703/3a/3a4a9641a8867671a3.img.png_200x200_9a235bb9.png',
                    title:'华清宫',
                    desc:'探寻杨贵妃御汤遗址探寻杨贵妃御汤遗址探寻杨贵妃御汤遗址',

                },
                {
                    id:'002',
                    imgUrl:'http://img1.qunarzz.com/sight/p0/1703/3a/3a4a9641a8867671a3.img.png_200x200_9a235bb9.png',
                    title:'华清宫',
                    desc:'探寻杨贵妃御汤遗址探寻杨贵妃御汤遗址探寻杨贵妃御汤遗址',
                    
                },
                {
                    id:'003',
                    imgUrl:'http://img1.qunarzz.com/sight/p0/1703/3a/3a4a9641a8867671a3.img.png_200x200_9a235bb9.png',
                    title:'华清宫',
                    desc:'探寻杨贵妃御汤遗址探寻杨贵妃御汤遗址探寻杨贵妃御汤遗址',
                    
                }

            ]
        }
    },
}
</script>

<style lang="stylus" scoped>
 @import '~styles/mixins.styl';
    .recommendTitle {
      margin-top .2rem
      line-height .8rem
      background-color #eee
      text-indent .2rem
    }
    .item
      overflow hidden  
      display flex
      height 1.8rem 
      .item-img
        width 1.7rem
        height 1.7rem
        padding .1rem
      .item-info
        flex 1
        padding .1rem
        min-width 0
       .item-title
         ellipsis()  
         line-height .54rem
         font-size .32rem
       .item-desc
         ellipsis()
         line-height .4rem
         color #616161
       .item-btn 
         line-height .43rem
         margin-top .26rem   
         background-color #ff9300
         padding 0 .1rem
         border-radius .06rem
         color  #fff        
</style>
